package com.dongdongshop.api;

import com.dongdongshop.data.Result;
import com.dongdongshop.dto.SellerDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dongdongshop-seller-service")
public interface SellerServiceApi {

    @PostMapping("/seller/sellerByName")
    Result<SellerDTO> selectByName(@RequestParam String sellerId);

    @PostMapping("/seller/sellerList")
    Result sellerList();

    @PostMapping("/seller/updateState")
    Result updateState(@RequestBody String sellerId, @RequestParam int state);

    @PostMapping("/seller/sellerByName")
    Result selectByName2(@RequestParam String sellerId);

}
